home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / songbook / mksbtdx < prev    next >
Text File  |  1994-01-22  |  690b  |  41 lines

  1. #!/bin/sh
  2. #####
  3. #####
  4. ##
  5. ##    mksbtdx - Produce a songbook style .tdx file from a .tIdx file.
  6. ##
  7. ##    Version 2.3, 1 January, 1994
  8. ##
  9. ##    Copyright 1992--94 Christopher Rath
  10. ##    crath@bnr.ca
  11. ##
  12. ##    Take a .tIdx file produced by one of the songbook styles and
  13. ##    turn it into a .tdx file for final formatting into a title and
  14. ##    first line index.
  15. ##
  16. #####
  17. #####
  18.  
  19. ###
  20. # Check that the proper parameters were input.
  21. ###
  22. if [ "$1" = "" ]
  23. then
  24.   echo USAGE: $0 jobname
  25. fi
  26.  
  27. ###
  28. # Call makeindex to do the required munging.
  29. ##
  30. makeindex -s songbook.ist -o $1.tdx $1.tIdx
  31.  
  32. ###
  33. # Tell the user what the new filename is.
  34. ###
  35. echo " "
  36. echo "The new Index file is called \`$1.tdx'."
  37.  
  38. ###
  39. # End of script.
  40. ###
  41.